package com.fl.proyect_softmedic;

import com.example.proyect_softmedic.R;


import android.os.Bundle;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.graphics.Color;

import android.view.Menu;
import android.view.View;
import android.view.ViewGroup;
import android.view.View.OnClickListener;

import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.CompoundButton;
import android.widget.CompoundButton.OnCheckedChangeListener;
import android.widget.RadioButton;
import android.widget.Spinner;
import android.widget.TextView;

public class Setting_acountMe extends Activity {

	private CustomArrayAdapter<CharSequence> mAdapter;
	private Spinner sp_speciality, sp_typeblo, sp_level, sp_office, sp_epsconven, ps_list_recep;
	private Button btn_start2;
	private RadioButton r1, r2, r3;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_setting_acount_me);
		//spinner of list of special
		sp_speciality = (Spinner)findViewById(R.id.sp_list_speciality);
		//spinner of list of type of blood
		sp_typeblo = (Spinner)findViewById(R.id.sp_type_bl2);
		//spinner of number of level
		sp_level = (Spinner)findViewById(R.id.sp_number_level2);
		//spinner of number of office
		sp_office = (Spinner)findViewById(R.id.sp_number_off2);
		//spinner of agreement of eps
		sp_epsconven = (Spinner)findViewById(R.id.sp_listeps2);
		//Spinner of list of receptionist 
		ps_list_recep = (Spinner)findViewById(R.id.sp_select_recep2);
		
		btn_start2 = (Button)findViewById(R.id.btn_start2);
		

		String [] spin_arry = getResources().getStringArray(R.array.durations_quotes);        
		sp_speciality.setAdapter(this.mAdapter = new CustomArrayAdapter<CharSequence>(this, spin_arry));
		
		//se deben cambiar por los valores dinamicos de las bases de datos
		sp_typeblo.setAdapter(this.mAdapter = new CustomArrayAdapter<CharSequence>(this, spin_arry));
		sp_level.setAdapter(this.mAdapter = new CustomArrayAdapter<CharSequence>(this, spin_arry));
		sp_office.setAdapter(this.mAdapter = new CustomArrayAdapter<CharSequence>(this, spin_arry));
		sp_epsconven.setAdapter(this.mAdapter = new CustomArrayAdapter<CharSequence>(this, spin_arry));
		ps_list_recep.setAdapter(this.mAdapter = new CustomArrayAdapter<CharSequence>(this, spin_arry));
		
		
		
		
		//btn for return page of medics
		btn_start2.setOnClickListener(new OnClickListener() {		
			@Override
			public void onClick(View v) {
					Intent i = new Intent(Setting_acountMe.this, Activity_medic.class);
					startActivity(i);
			}
		});
		
	
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.setting_acount_me, menu);
		return true;
	}

}

